package ysq.xyg.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 商品活动
 *
 * @author congcong tao
 * @create 2018/8/8 下午9:31
 */
@Table(name = "yyg_activity")
public class Activity implements Serializable {

    @Id
    private String id;

    @Column(name = "item_id")
    private String itemId;

    private String title;

    /**
     * 状态1=进行中2=结束
     */
    private String status;

    /**
     * 总计需要多少虚拟币,商品表价格*商品表人次
     */
    @Column(name = "total_num")
    private int totalNum;

    /**
     * 期数,进行了多少期
     */
    @Column(name = "periods_num")
    private int periodsNum;

    /**
     * 中奖号
     */
    @Column(name = "winning_num")
    private String winningNum;

    /**
     * 默认中奖号
     */
    @Column(name = "default_num")
    private String defaultNum;

    /**
     * 是否自动进行
     * 1=自动2=停止
     */
    @Column(name = "is_auto")
    private String isAuto;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Transient
    private String itemTitle;

    @Transient
    private String imageOne;

    /**
     * 已需
     */
    @Transient
    private int readyNum;

    /**
     * 进度，整形
     */
    @Transient
    private int progress;

    /**
     * 1即将开奖2最热3最新，4最新出现的效果，和结束组合查询即最新
     * 根据状态1和2判断进行中和结束
     */
    @Transient
    private String orderType;

    @Transient
    private String memberName;

    @Transient
    private String memberHeadImage;

    /**
     * 获奖人购买次数
     */
    @Transient
    private String winInNum;

    /**
     * 当前人是否中奖状态
     * 0不中奖1中奖
     */
    @Transient
    private String currentMemberStatus;

    /**
     * 货物管理id
     */
    @Transient
    private String receivingId;

    /**
     * 是否签收
     * 1=签收2=未签收
     */
    @Transient
    private String receivingStatus;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public int getPeriodsNum() {
        return periodsNum;
    }

    public void setPeriodsNum(int periodsNum) {
        this.periodsNum = periodsNum;
    }

    public String getWinningNum() {
        return winningNum;
    }

    public void setWinningNum(String winningNum) {
        this.winningNum = winningNum;
    }

    public String getDefaultNum() {
        return defaultNum;
    }

    public void setDefaultNum(String defaultNum) {
        this.defaultNum = defaultNum;
    }

    public String getIsAuto() {
        return isAuto;
    }

    public void setIsAuto(String isAuto) {
        this.isAuto = isAuto;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getItemTitle() {
        return itemTitle;
    }

    public void setItemTitle(String itemTitle) {
        this.itemTitle = itemTitle;
    }

    public String getImageOne() {
        return imageOne;
    }

    public void setImageOne(String imageOne) {
        this.imageOne = imageOne;
    }

    public int getReadyNum() {
        return readyNum;
    }

    public void setReadyNum(int readyNum) {
        this.readyNum = readyNum;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberHeadImage() {
        return memberHeadImage;
    }

    public void setMemberHeadImage(String memberHeadImage) {
        this.memberHeadImage = memberHeadImage;
    }

    public String getWinInNum() {
        return winInNum;
    }

    public void setWinInNum(String winInNum) {
        this.winInNum = winInNum;
    }

    public String getCurrentMemberStatus() {
        return currentMemberStatus;
    }

    public void setCurrentMemberStatus(String currentMemberStatus) {
        this.currentMemberStatus = currentMemberStatus;
    }

    public String getReceivingId() {
        return receivingId;
    }

    public void setReceivingId(String receivingId) {
        this.receivingId = receivingId;
    }

    public String getReceivingStatus() {
        return receivingStatus;
    }

    public void setReceivingStatus(String receivingStatus) {
        this.receivingStatus = receivingStatus;
    }
}